package org.qydjk.console.service;

import org.qydjk.common.pojo.SellerProductLabel;
import org.qydjk.common.service.IBaseService;
import org.qydjk.common.util.RedisTemplateUtil;
import org.qydjk.common.vo.EasyUIResponse;

import java.util.List;

/**
 * 标签Service
 * Created by Edward_yang on 2017/12/12 0012.
 */
public interface ISellerProductLabelService extends IBaseService {
    /****
     * 带分页查询和筛选标签
     * @author Edward_yang
     * @uptime 2017-12-12
     * @param page 当前页
     * @param rows 每页多少条
     * @param one_category_id  联动
     * @param keyWord  查询条件
     * @param type     下拉分类
     * @return EasyUIResponse  total和List
     */
    public EasyUIResponse findLabelList(Integer page, Integer rows, String one_category_id, String keyWord, String type) throws Exception;

    /***
     *  查询标签所有的数据
     * @author Edward_yang
     * @uptime 2017-12-12
     *  @return  List<SellerProductLabel>
     */
    public List<SellerProductLabel> findAllList() throws  Exception;

    /**
     * 查询标签并初始化到redis
     * @param redisTemplateUtil
     * @throws Exception
     */
    public void getLabelsToRedis(RedisTemplateUtil redisTemplateUtil) throws  Exception;

}
